*******************************************************
* Main Setup for Analysis Data for 
* "Trade Shocks, Firm Hierarchies, and Wage Inequality"
* by Benjamin Friedrich
*
* Files need to run in this order!
*******************************************************


*******************************************************
* worker-level assignment of hierarchy layer
*******************************************************
do "${do_dir}\Setup_Workerdata.do"

*******************************************************
* firm-level number of layers and wage inequality
*******************************************************
do "${do_dir}\Setup_Firm_Outcomes.do"

*******************************************************
* Construct Bartik trade shocks
*******************************************************
do "${do_dir}\Setup_Tradedata_Bartik.do" 

*******************************************************
* Prepare main analysis file for IV estimation
*******************************************************
do "${do_dir}\Main_Sample_IV.do"

*******************************************************
* Prepare main analysis file for Cartoon Crisis 
*******************************************************
do "${do_dir}\Main_Sample_Cartoon.do"
